﻿Imports System.Configuration


''' <summary>
''' 设置节
''' </summary>
''' <remarks></remarks>
Public Class ComicServiceSection
    Inherits ConfigurationSection


    Public Const AuthorNameKey = "AuthorName"
    Public Const AuthorEmailKey = "AuthorEmail"
    Public Const CopyrightKey = "Copyright"
    Public Const ProvidersKey As String = "Providers"
    Public Const DefaultProviderKey As String = "DefaultProvider"

    Public Sub New()

    End Sub


    ''' <summary>
    ''' 作者名字
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <ConfigurationProperty(AuthorNameKey)> _
    Public Property AuthorName() As StringValueConfigElement
        Get
            Return CType(Me(AuthorNameKey), StringValueConfigElement)
        End Get
        Set(ByVal value As StringValueConfigElement)
            Me(AuthorNameKey) = value
        End Set
    End Property


    ''' <summary>
    ''' 作者邮件
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <ConfigurationProperty(AuthorEmailKey)> _
    Public Property AuthorEmail() As StringValueConfigElement
        Get
            Return CType(Me(AuthorEmailKey), StringValueConfigElement)
        End Get
        Set(ByVal value As StringValueConfigElement)
            Me(AuthorEmailKey) = value
        End Set
    End Property


    ''' <summary>
    ''' 版权
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <ConfigurationProperty(CopyrightKey)> _
    Public Property Copyright() As StringValueConfigElement
        Get
            Return CType(Me(CopyrightKey), StringValueConfigElement)
        End Get
        Set(ByVal value As StringValueConfigElement)
            Me(CopyrightKey) = value
        End Set
    End Property


    ''' <summary>
    ''' 默认 Proverders
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <ConfigurationProperty(DefaultProviderKey)> _
    Public Property DefaultProvider() As StringValueConfigElement
        Get
            Return DirectCast(Me(DefaultProviderKey), StringValueConfigElement)
        End Get
        Set(ByVal value As StringValueConfigElement)
            Me(DefaultProviderKey) = value
        End Set
    End Property

    ''' <summary>
    ''' Proverders 集合
    ''' </summary>
    ''' <value></value>
    ''' <returns></returns>
    ''' <remarks></remarks>
    <ConfigurationProperty(ProvidersKey)> _
    Public Property Providers() As ProviderSettingsCollection
        Get
            Return DirectCast(Me(ProvidersKey), ProviderSettingsCollection)
        End Get
        Set(ByVal value As ProviderSettingsCollection)
            Me(ProvidersKey) = value
        End Set
    End Property





End Class
